package org.blog.service;

import java.util.List;

import org.blog.helper.BaseException;
import org.blog.model.ModelMonitor;
import org.blog.model.ext.MonitorModelExt;

public interface MonitorService {

	/**
	 * 获取所有信息并分页表示
	 * 
	 * @param page
	 * @return
	 */
	public List<MonitorModelExt> listAll(int page) throws BaseException;

	public int countAll();

	/**
	 * 获取某个人的信息分页表示
	 * 
	 * @param jid
	 * @param page
	 * @return
	 */
	public List<MonitorModelExt> listJid(String jid, int page) throws BaseException;

	public int countJid(String jid);

	public MonitorModelExt get(Long id);

	/**
	 * 删除小于指定时间的数据
	 * 
	 * @param createtime
	 */
	public void deleteBelow(long createtime);

	public void insert(ModelMonitor model);

}
